<!--
  @author tanbiao
  @since 2019-11-21 18:56:50
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--搜索条件置于单独的layui-card-body中
    -->
<div class="layui-card-body" th:fragment="query">
    <!--用于保存或传值的隐藏表单元素
        置于form标签内的最上方
        -->

    <!--每个zmn-form-item一行，每行4列
       支持页面自适应，1280分辨率下不折行
       -->
    <div class="zmn-form-item">

        <!--默认情况下标签item-inline占据1列，
            加入样式col2，表示该item-inline占据2列，用于支持多级联动下拉框
            -->
        <div class="item-inline">
            <label class="inline-label">渠道名称：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="channelId" name="channelId" lay-filter="channelId" value="0"  lay-search="">
                            <!--<option value="0" th:selected="${0 == vo.servCategId}">-选择-</option>-->
                            <option th:value="${item.channelId}" th:selected="${item.channelId == vo.channelId}" th:text="${item.name}"
                                    th:each="item:${channels}">
                            </option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">城市：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="cityId" id="cityId" lay-verify="required" lay-filter="cityId" lay-search>
                            <!--<option value="" th:selected="${0 == vo.cityId}">全部</option>-->
                            <option th:value="${item.cityId}"
                                    th:text="${item.cityName}"
                                    th:selected="${item.cityId == vo.cityId}"
                                    th:each="item:${baseAreas}">城市
                            </option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">业务类型：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="bizType" id="bizType" lay-filter="bizType" >
                            <option th:value="1" th:selected="${1 == vo.bizType}">C-保外业务</option>
                            <option th:value="2" th:selected="${2 == vo.bizType}">F-保内业务</option>
                            <option th:value="3" th:selected="${3 == vo.bizType}">B-工程业务</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <!--<div class="item-inline">-->
            <!--<label class="inline-label">价格表类型：</label>-->
            <!--<div class="inline-box">-->
                <!--<div class="inline-box-cc">-->
                    <!--<div class="box-input-inline">-->
                        <!--<select name="tariffType" id="tariffType">-->
                            <!--<option th:value="1" th:selected="${1 == vo.tariffType}">服务价格</option>-->
                            <!--<option th:value="2" th:selected="${2 == vo.tariffType}">计价器价格</option>-->
                        <!--</select>-->
                    <!--</div>-->
                <!--</div>-->
            <!--</div>-->
        <!--</div>-->
        <div class="item-inline">
            <label class="inline-label">前台/后台：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="showType" lay-filter="showType" id="showType">
                            <option th:value="1" th:selected="${1 == vo.showType}">后台产品</option>
                            <option th:value="2" th:selected="${2 == vo.showType}">前台产品</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="zmn-form-item">


        <div class="item-inline col2">
            <label class="inline-label">所属分类：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline col3">
                        <select lay-filter="servCategId" name="servCategId" id="servCategId" lay-search>
                            <!--<option value="">-服务分类-</option>-->
                            <option th:each="serv:${servCategories}" th:value="${serv.servCategId}"
                                    th:text="${serv.servCategName}" th:selected="${serv.servCategId == vo.servCategId}"></option>
                        </select>
                    </div>
                    <div class="box-input-inline col3">
                        <select lay-filter="categOneId" name="categOneId" id="categOneId" lay-search>
                            <!--<option value="">-1级分类-</option>-->
                            <option th:each="catgOne:${categOneList}" th:value="${catgOne.categOneId}"
                                    th:text="${catgOne.categOneName}" th:selected="${catgOne.categOneId == vo.categOneId}"></option>
                        </select>
                    </div>
                    <div class="box-input-inline col3">
                        <select lay-filter="categId" name="categId" id="categId" lay-search>
                            <!--<option value="">-2级分类-</option>-->
                            <option th:each="categ:${categList}" th:value="${categ.categId}"
                                    th:text="${categ.categName}" th:selected="${categ.categId == vo.categId}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">产品名称：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="productId" lay-filter="productId" id="productId" lay-search>
                            <!--<option value="" th:selected="${null == vo.productId}">请选择</option>-->
                            <option th:each="product:${productList}" th:value="${product.productId}"
                                    th:text="${product.productName}" th:selected="${product.productId == vo.productId}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="item-inline">
            <label class="inline-label">品牌：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="brandId" name="brandId" lay-filter="brandId" value="0"  lay-search="">
                            <option th:value="${item.brandId}" th:selected="${item.brandId == vo.brandId}" th:text="${item.brandName}"
                                    th:each="item:${brands}">
                            </option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="item-submit">
            <!--查询与重置按钮
           查询按钮lay-filter属性统一定义为zmn-form-submit
           如查询条件较多，为节省横向空间，查询按钮使用小按钮(无文字“查询”)
           -->
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="zmn-form-submit"><i class="layui-icon">&#xe615;</i> </button>
            <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary"  lay-submit="" lay-filter="zmn-form-reset"><i class="layui-icon">&#xe669;</i></button>
        </div>





    </div>

</div>
